package com.neusoft.resturant.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 购物车对象 res_carts
 * 
 * @author lzx
 * @date 2023-12-16
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResCarts
{
    private static final long serialVersionUID = 1L;

    /** 编号 */

    private Long id;

    /** 店铺id */

    private Long shopId;

    /** 菜品id */

    private Long dishId;

    /** 数量 */

    private Long count;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;


    private String userName;
    private String shopName;
    private String dishName;
    private String price;
    private String cover;
    private Long user_id;
}
